package com.huazhi.wzsnw.service;

import com.huazhi.wzsnw.model.Peasant;
import com.huazhi.wzsnw.model.ProjectTable;
import com.huazhi.wzsnw.model.Village;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface PeasantService {

    List<Peasant> getPeasaneBySearch(String key, Integer page, Integer pageSize);

    List<Village> getVillageBySearch(String key, Integer page, Integer pageSize);

    List<ProjectTable> getProjectTableBySearch(String key, Integer page, Integer pageSize);

    public String getByBaseName(String name, String table);

    public Integer saveBase(Object object, String table);

    public  Object findBaseByTid(String tid, String table);

    public Integer updateBase(Object object, String table);

    public int deleteBase(String tid, String table);

    List<String> getListBaseTidBySearch(String key, String table);

    List<String> getListBaseTidByRequest(HttpServletRequest request,String table);

    public List<Object> findPagingByListTid(List<String> stringList, Integer pageIndex, Integer pageSize, String table);

    public List<String> getBaseTidByName(String name, String table);
}
